package org.malajava;

//父子类不在同一个包中时需要使用 import 导入
import cn.edu.ecut.Student; 

public class MiddleSchoolStudent extends Student {
	
	public static void main( String[] args ) {
		
		MiddleSchoolStudent m = new MiddleSchoolStudent();
		
		m.name = "张三丰" ;
		m.number = 90092002 ;
		// m.age = 15 ; // package-private :  The field Student.age is not visible ( 因为不同包 )
		// m.head = "三丰的头" ; // private : The field Student.head is not visible ( 因为私有 )
		
		m.show();
		
	}

}
